package com.zy1.stu_man.aspect;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class LogAspect {
    @Before("execution(void *(int,int))")
    public void logStart(){
        System.out.println("切面-日志：开始");
    }
    @After("execution(void *(int,int))")
    public void logEnd(){
        System.out.println("<UNK>-<UNK>结束");
    }
    @AfterReturning("execution(void *(int,int))")
    public void loginit(){
        System.out.println("<UNK>-<UNK>运行");
    }
}
